﻿// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved
// Developer:  Michael Antonio
using System;
using System.Collections.Generic;

namespace MichMan.Utilities.Requests
{
    /// <summary>
    /// Caches nothing!
    /// </summary>
    public class NoCache : CacheBase, ICache
    {

        /// <summary>
        /// Returns null.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <returns></returns>
        public object Get(string key)
        {
            return null;
        }

        /// <summary>
        /// No operation.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="o">The o.</param>
        /// <param name="lifetime">The lifetime.</param>
        /// <returns></returns>
        public bool Insert(string key, object o, TimeSpan? lifetime)
        {
            return false;
        }

        /// <summary>
        /// No operation
        /// </summary>
        /// <param name="key">The key.</param>
        public void Delete(string key)
        {
        }

        /// <summary>
        /// No operation
        /// </summary>
        public void Clear()
        {
        }
    }

}
